package com.magicode.cms.dao.impl;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.magicode.cms.dao.INewsPersonRelaDao;
import com.magicode.cms.entiy.base.NewsEnterpriseRela;
import com.magicode.cms.entiy.base.NewsPersonRela;
import com.magicode.cms.entiy.base.VideoPlayHistory;
@Repository("newsPersonRelaDao")
public class NewsPersonRelaDaoImpl extends BaseDaoImpl<NewsPersonRela>implements INewsPersonRelaDao {

	@Override
	public List<NewsPersonRela> queryDataList(String hql, int i, int j) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deleteNewsPersonRelalist(String userid) {
		// TODO Auto-generated method stub
		String hql = " from "+NewsPersonRela.class.getName()+" t " +
				"  where  t.news.id = '"+userid+"'" ;
		List<NewsPersonRela> vphs = commonDaoService.getListByHQL(hql);
		commonDaoService.deleteAll(vphs);
	}
}
